package gewu.suleju.sevice.imp;
import gewu.suleju.dao.iml.IHouseBrowsingHistoryDao;
import gewu.suleju.model.pojo.HouserBrowsingHistory;
import gewu.suleju.sevice.IHouseBrowHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IHouseBrowHistoryServiceImp implements IHouseBrowHistoryService {
    @Autowired
    private IHouseBrowsingHistoryDao iHouseBrowsingHistoryDao;
    @Override
    public HouserBrowsingHistory findHouserBrowsingHistoryByUserId(Integer userid) {
        return iHouseBrowsingHistoryDao.findHouserBrowsdHistoryByUserId(userid);
    }

    @Override
    public List<HouserBrowsingHistory> findHouserBrowdHistoriesByUserId(Integer userid) {
        return iHouseBrowsingHistoryDao.findHouserBrowdHistoriesByUserId(userid);
    }
}
